<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>订单详情</title>
    <meta name="decorator" content="default"/>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/CheckAllController/orderList">返回查看订单</a></li>
</ul>
<br/>
<sys:message content="${message}"/>
<span><font style="color: #00A6C7">${message1}</font></span>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>订单号</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品数量</th>
        <th>订单总额</th>
        <th>订单联系人</th>
        <th>联系电话</th>
        <th>支付方式</th>
        <th>支付状态</th>
        <th>支付时间</th>
      <%--  <th>收款方名称</th>--%>
    </tr>
    </thead>
    <tbody>

        <c:forEach items="${tbOrderProductList}" var="tbOrderProduct">
        <tr>
            <td>${tbOrder.orderNo}</td>
            <td>${tbOrderProduct.productName}</td>
            <td>${tbOrderProduct.price}</td>
            <td>${tbOrderProduct.quantity}</td>
            <td>${tbOrder.orderAmount}</td>
            <td>${tbOrder.contactName}</td>
            <td>${tbOrder.contactMobile}</td>
            <td>
                <c:if test="${tbOrder.payId eq '1'}">
                    物业钱包
                </c:if>
                <c:if test="${tbOrder.payId eq '2'}">
                    麻雀钱包
                </c:if>
                <c:if test="${tbOrder.payId eq '3'}">
                    微信
                </c:if>
                <c:if test="${tbOrder.payId eq '5'}">
                    现金
                </c:if>
                <c:if test="${tbOrder.payId eq '6'}">
                    银行卡
                </c:if>
            </td>
            <td>
                <c:if test="${tbOrder.payState eq '0'}">
                    未付款
                </c:if>
                <c:if test="${tbOrder.payState eq '1'}">
                    已付款
                </c:if>
            </td>
            <td><fmt:formatDate value="${tbOrder.payTime}" type="both"/></td>
          <%--  <td>${tbOrder.beneficiaryName}</td>--%>
        </tr>
        </c:forEach>
    </tbody>
</table>

<%--
<form id="inputForm" class="form-horizontal">
    <div class="control-group">
        <label class="control-label">订单号:</label>
        <div class="controls">
            <input value="${tbOrder.orderNo}" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">商品名称:</label>
        <div class="controls">
            <input value="${tbOrderProduct.productName}" htmlEscape="false" maxlength="50" class="required"
                   readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">商品价格:</label>
        <div class="controls">
            <input value="${tbOrderProduct.price}" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">商品数量:</label>
        <div class="controls">
            <input value="${tbOrderProduct.quantity}" htmlEscape="false" maxlength="50" class="required"
                   readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">商品描述:</label>
        <div class="controls">
            <input value="${tbOrderProduct.productDes}" htmlEscape="false" maxlength="50" readonly="true"/>
        </div>
    </div>
    </div>

    <div class="control-group">
        <label class="control-label">订单联系人:</label>
        <div class="controls">
            <input value="${tbOrder.contactName}" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">用户手机号:</label>
        <div class="controls">
            <input value="${tbOrder.contactMobile}" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">订单总额:</label>
        <div class="controls">
            <input value="${tbOrder.orderAmount}" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">订单时间:</label>
        <div class="controls">
            <input value="${tbOrder.orderTime}" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">订单状态:</label>
        <div class="controls">
            <c:if test="${tbOrder.orderState eq '0'}">
                <input value="未确认" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>

            <c:if test="${tbOrder.orderState eq '1'}">
                <input value="已取消" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>

            <c:if test="${tbOrder.orderState eq '2'}">
                <input value="已关闭" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">支付状态:</label>
        <div class="controls">
            <c:if test="${tbOrder.payState eq '0'}">
                <input value="未付款" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>

            <c:if test="${tbOrder.payState eq '1'}">
                <input value="已付款" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">支付方式:</label>
        <div class="controls">
            <c:if test="${tbOrder.payId eq '0'}">
                <input value="微信" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>

            <c:if test="${tbOrder.payId eq '1'}">
                <input value="支付宝" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>
            <c:if test="${tbOrder.payId eq '2'}">
                <input value="银联" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
            </c:if>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">支付时间:</label>
        <div class="controls">
            <input value="${tbOrder.payTime}" htmlEscape="false" maxlength="50" class="required" readonly="true"/>
        </div>
    </div>
    <div class="form-actions">
        &lt;%&ndash;<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&ndash;%&gt;
    </div>
</form>--%>

<div align="right" class="form-actions">
    <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</body>
</html>
